<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-html</title>
</head>
<body>
    <div id="app">
        <h2 v-text="message"></h2> <!-- 会分析其中的html代码 -->
        <h2 v-html="message"></h2>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                message:"<a href='http://www.baidu.com'>百度</a>"
            }
        })
    </script>
</body>
</html>